﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCCongViecChinh.ascx.cs"
    Inherits="DemoExtNet.NhanVien.UserControl.UCCongViecChinh" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="~/NhanVien/UserControl/UcToChuc.ascx" TagName="UcToChuc" TagPrefix="uc" %>
<link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    body
    {
        color: #57585B; /*dark gray*/
        font-size: 8px;
        font-family: Arial;
    }
</style>
<ext:XScript ID="XScipt1" runat="server">
    <script type="text/javascript">
    
    </script>
</ext:XScript>
<ext:Window ID="wdCongViecChinh" runat="server" AutoHeight="true" Closable="false"
    Modal="true" Icon="TableCell" Width="400" Layout="Fit" AutoScroll="true" Hidden="true"
    Resizable="true" BodyCssClass="window">
    <Listeners>
    </Listeners>
    <Content>
        <ext:Panel ID="Panel1" runat="server" Frame="false" Border="false" AutoHeight="true"
            Icon="Information" BodyStyle="background-color: white;">
            <Content>
                <table width="100%">
                    <tr style="display: none;">
                        <td>
                            <ext:Hidden ID="hdParentType" runat="server" />
                            <ext:Hidden ID="hdType" runat="server" />
                            <ext:Hidden ID="hdNhanVienId" runat="server" />
                            <ext:Hidden ID="hdCongViecChinhId" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Công việc
                        </td>
                        <td>
                            <ext:TextField ID="txtCongViec" runat="server" Width="200px" EmptyText="Tên công việc">
                            </ext:TextField>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Chức vụ
                        </td>
                        <td>
                            <ext:TextField ID="txtChucVu" runat="server" Width="200px" EmptyText="Tên chức vụ">
                            </ext:TextField>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Cơ quan
                        </td>
                        <td>
                            <ext:TextField ID="txtCoQuan" runat="server" Width="200px">
                                <ToolTips>
                                    <ext:ToolTip ID="ToolTip3" runat="server" AutoHide="true" TrackMouse="true">
                                        <Listeners>
                                            <Show Handler="ShowTip(this,#{txtCoQuan}.getValue())" />
                                        </Listeners>
                                    </ext:ToolTip>
                                </ToolTips>
                            </ext:TextField>
                            <ext:Hidden ID="hdCoQuan_CongViecChinh" runat="server" />
                             <ext:Hidden ID="hdFlagToChuc_CongViecChinh" runat="server" />
                        </td>
                        <td>
                            <ext:Button ID="Button5" runat="server" Icon="Magnifier" Text="Chọn cơ quan" IconAlign="Right">
                                <Listeners>
                                    <Click Handler="#{hdStatus}.setValue('LookUp_CongViecChinh');#{DirectMethods}.LoadLookUpToChuc();" />
                                </Listeners>
                            </ext:Button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Ngày thay đổi
                        </td>
                        <td>
                            <ext:DateField Format="dd/MM/yyyy" ID="dtNgayThayDoi" runat="server" AnchorHorizontal="100%"
                                Width="100" SelectedDate="">
                            </ext:DateField>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            Ghi chú
                        </td>
                        <td>
                            <ext:TextArea ID="txtGhiChu" runat="server" Width="200" />
                        </td>
                    </tr>
                </table>
            </Content>
        </ext:Panel>
    </Content>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Lưu" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSaveCongViecChinh_CLick">
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="Button1" runat="server" Text="Đóng" Icon="Cancel">
            <Listeners>
                <Click Handler="#{wdCongViecChinh}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
<uc:UcToChuc ID="UcToChuc" runat="server" />